$(function () {
  let shop = cookie.get('shop');

  shop = JSON.parse(shop);

  let idList = shop.map(el => el.id).join();
  // console.log(idList);

  $.ajax({
    url: '../interface/shop.php',
    data: { idList },
    type: 'get',
    dataType: 'json'
  }).then(res => {
    console.log(res);
  }).catch(xhr => {
    console.log(xhr);
  });

});